#include <stdio.h>
void init_monitor(int, char *[]);
void reg_test();
void restart();
void ui_mainloop();

int main(int argc, char *argv[]) {

	/* Initialize the monitor. */
	init_monitor(argc, argv);

	/* Test the implementation of the `CPU_state' structure. */
	// printf("reg_test\n");
	//cpu缓存问题出在下面这个函数里面
	reg_test();
	
	// printf("restart\n");

	/* Initialize the virtual computer system. */


	restart();

	/* Receive commands from user. */
	// printf("ui_mainloop\n");
	ui_mainloop();

	return 0;
}
